Stateful Contracts for Affine Types

نویسندگان

  • Jesse A. Tov
  • Riccardo Pucella
چکیده

Affine type systems manage resources by preventing some values from being used more than once. This offers expressiveness and performance benefits, but difficulty arises in interacting with components written in a conventional language whose type system provides no way to maintain the affine type system’s aliasing invariants. We propose and implement a technique that uses behavioral contracts to mediate between code written in an affine language and code in a conventional typed language. We formalize our approach via a typed calculus with both affine-typed and conventionally-typed modules. We show how to preserve the guarantees of both type systems despite both languages being able to call into each other and exchange higher-order values. This is the extended version of a paper that appeared in ESOP 2010. ∗Our prototype implementation and related material may be found at http://www.ccs.neu.edu/ ~tov/pubs/affine-contracts/.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Instantaneous Decentralized Poker

We present efficient protocols for amortized secure multiparty computation with penalties and secure cash distribution, of which poker is a prime example. Our protocols have an initial phase where the parties interact with a cryptocurrency network, that then enables them to interact only among themselves over the course of playing many poker games in which money changes hands. The high efficien...

متن کامل

Developing a framework for studying and evaluating the types of psychological contracts in the context of relationship marketing

Nowadays, belief in the criteria and conditions of interactions with an organization to promote customer relationships is somehow tied to the organizational performance, and its final goal is of great importance. In the literature on organizational behavior, this belief is defined as the “psychological contract”. The intention of this mixed research is to identify and discover the contents of p...

متن کامل

Quantitative Analysis of Smart Contracts

Smart contracts are computer programs that are executed by a network of mutually distrusting agents, without the need of an external trusted authority. Smart contracts handle and transfer assets of considerable value (in the form of crypto-currency like Bitcoin). Hence, it is crucial that their implementation is bug-free. We identify the utility (or expected payoff) of interacting with such sma...

متن کامل

بررسی تطبیقی شرایط عقود اسلامی و قراردادهای پشتیبانی بانکداری اسلامی (مورد مطالعه: بانک شهر)

Islam emphasizes all social issues, especially healthy economic relations. What has led to the need to examine and address the issues of contracts in Islam and the contracts of support in Islamic banking, is the existence of various contracts in the society. In this research, it is tried to examine the compatibility of the contracts of support in Islamic banking with the contractual and religio...

متن کامل

Enforcing Stateful Authorization and Information Flow Policies in Fine

Proving software free of security bugs is hard. Languages that ensure that programs correctly enforce their security policies would help, but, to date, no security-typed language has the ability to verify the enforcement of the kinds of policies used in practice—dynamic, stateful policies which address a range of concerns including forms of access control and information flow tracking. This pap...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010